n = int(input())

sum = 0
while n > 0:
    n = n - 1
    sum = (sum + 1000) / (1+0.0063*12)
    
print(format(sum,'.2f'))